package Operation;

import Book.Book;
import Book.Bookshelf;

public class ShowBook implements IOperation {
    @Override
    public void working(Bookshelf bookshelf) {

        //遍历书架上的所有图书
        for (int i = 0; i < bookshelf.bookShelfNumber; i++) {
            Book book = bookshelf.books[i];
            System.out.println(book);
        }
    }
}
